<!-- 应用功能组件 -->
<template>
	<view>
		<swiper class="swiper" @change="change">
			<swiper-item>
				<view class="apply-box">
					<view>
						<view class="apply-text" @click="$goToUrl('/pages/home/addPatrol/patrolClock/patrolClock')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-polling.png" mode=""></image>
							</view>
							<view>巡检打卡</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/repairOrder/repairOrder')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-maintainOrder.png" mode=""></image>
							</view>
							<view>维修工单</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/repairWaiting/repairWaiting')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-maintainDone.png" mode=""></image>
							</view>
							<view>维修待办</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/problemFeedback/problemFeedback')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-issue.png" mode=""></image>
							</view>
							<view>问题反馈</view>
						</view>
					</view>

					<view>
						<view class="apply-text" @click="$goToUrl('/pages/home/addResidents/addResidents')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-tjzh.png" mode=""></image>
							</view>
							<view>添加住户</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/businessQuery/businessQuery')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-ywcx.png" mode="aspectFit"></image>
							</view>
							<view>业务查询</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/meterReading/meterReading')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-meter.png" mode="aspectFit"></image>
							</view>
							<view>水电抄表</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/nucleic/nucleic')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-hsjc.png" mode="aspectFit"></image>
							</view>
							<view>核酸检测</view>
						</view>
					</view>
				</view>
			</swiper-item>

			<swiper-item>
				<view class="apply-box">
					<view>
						<view class="apply-text" @click="$goToUrl('/pages/home/treasureQuery/treasureQuery')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-ajb.png" mode=""></image>
							</view>
							<view>安居宝</view>
						</view>
						<view class="apply-text" @click="$goToUrl('/pages/home/myAuditComplaints/myAuditComplaints')">
							<view class="nl-margin-bottom-sm">
								<image src="../../static/index/i-complaint.png" mode="aspectFit"></image>
							</view>
							<view>投诉待办</view>
						</view>
						<view class="apply-text"></view>
						<view class="apply-text"></view>
					</view>
				</view>
			</swiper-item>
		</swiper>

		<view class="indicator-dots">
			<view class="indicator-dots-item" :class="[currentApply == 0 ? 'indicator-dots-active' : '']">
			</view>
			<view class="indicator-dots-item" :class="[currentApply == 1 ? 'indicator-dots-active' : '']">
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "apply",
		data() {
			return {
				currentApply: 0
			};
		},
		methods: {
			change(e) {
				this.currentApply = e.detail.current;
			}
		}
	}
</script>

<style lang="scss">
	/* 应用功能 */
	.apply-box {
		margin-top: 25rpx;
		margin-bottom: 30rpx;
		padding: 0 32rpx;
		display: flex;
		flex-direction: column;
	}

	.apply-box>view {
		display: flex;
		align-items: center;
		// justify-content: space-around;
	}

	.apply-text {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.apply-text>view:nth-child(1) {
		width: 70rpx;
		height: 70rpx;
	}

	.apply-text>view:nth-child(2) {
		color: $uni-text-color;
		font-size: 24rpx;
	}

	.indicator-dots {
		margin-bottom: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.indicator-dots-item {
		background-color: $u-tips-color;
		height: 6px;
		width: 6px;
		border-radius: 10px;
		margin: 0 3px;
	}

	.indicator-dots-active {
		background-color: $u-type-primary;
	}
</style>
